package com.studerb.events;

import com.studerb.nntp.NntpConnection;

public class ConnectionPoolEvent {
    public enum EventType {
        CREATED, DESTROYED
    }

    public EventType type;
    private NntpConnection connection;

    public ConnectionPoolEvent(NntpConnection conn, EventType eventType) {
        this.connection = conn;
        this.type = eventType;
    }

    public NntpConnection getConnection() {
        return connection;
    }

    public EventType getType() {
        return this.type;
    }
}